package combinationPattern;

import java.awt.*;

public class Dot extends BaseShape{
    private final int DOT_SIZE=3;
    public Dot(int x, int y, Color color) {
        super(x, y, color);
    }

    @Override
    public int getWidth() {
        return DOT_SIZE;
    }

    @Override
    public int getHight() {
        return DOT_SIZE;
    }

    @Override
    public void paint(Graphics graphics) {
        super.paint((java.awt.Graphics) graphics);
        graphics.fillRect(x-1,y-1,getWidth(),getWidth());
    }
}
